<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                        rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/onduty">首页</a>
                </li>
                <li>
                    <a href="#/sre/config/product_info_list/">配置列表</a>
                </li>
                <li class="active">商业产品配置</li>
            </ul>
        </div>
    </div>
</div>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-12 col-md-12 main">
            <div class="col-md-6 col-md-offset-3">
                <!--                <form name="form" ng-keydown="if(event.keyCode==13) return false;" ng-submit="form.$valid&&olapConfigAdd()" novalidate>-->
                <form name="form" novalidate>
                    <div class="form-group"
                        ng-class="{'has-error':form.merId.$error.required,'has-success':!form.merId.$error.required}">
                        <label style="padding: 0 0 5px">财务merid</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="merId" ng-model="vm.p.merId" required />
                        <span ng-show="form.merId.$error.required" class="help-block">请填写财务merid</span>
                    </div>

                    <div class="form-group"
                        ng-class="{'has-error':form.productPm.$error.required,'has-success':!form.productPm.$error.required}">
                        <label style="padding: 0 0 5px">商业产品PM</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="productPm" ng-model="vm.p.productPm" required />
                        <span ng-show="form.productPm.$error.required" class="help-block">请填写商业产品PM</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.isLegoProduct.$error.required,'has-success':!form.isLegoProduct.$error.required}">
                        <label style="padding: 0 0 5px">是否接乐高</label>
                        <select required name="isLegoProduct" ng-model="vm.p.isLegoProduct" class="form-control">
                            <option value="是">是</option>
                            <option value="否">否</option>
                        </select>
                        <span ng-show="form.isLegoProduct.$error.required" class="help-block">请选择是否接乐高</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.productId.$error.required,'has-success':!form.productId.$error.required}">
                        <label style="padding: 0 0 5px">乐高productid</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="productId" ng-model="vm.p.productId" required />
                        <span ng-show="form.productId.$error.required" class="help-block">请填写乐高productid</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.productName.$error.required,'has-success':!form.productName.$error.required}">
                        <label style="padding: 0 0 5px">产品名称</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="productName" ng-model="vm.p.productName"
                            required />
                        <span ng-show="form.productName.$error.required" class="help-block">请填写产品名称</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.productType.$error.required,'has-success':!form.productType.$error.required}">
                        <label style="padding: 0 0 5px">产品类型</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="productType" ng-model="vm.p.productType"
                            required />
                        <span ng-show="form.productType.$error.required" class="help-block">请填写产品类型</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.productSort.$error.required,'has-success':!form.productSort.$error.required}">
                        <label style="padding: 0 0 5px">产品分类</label>
                        <!--                        <input type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>-->
                        <input type="text" class="form-control" name="productSort" ng-model="vm.p.productSort"
                            required />
                        <span ng-show="form.productSort.$error.required" class="help-block">请填写产品分类</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.isBuyBasedInfo.$error.required,'has-success':!form.isBuyBasedInfo.$error.required}">
                        <label style="padding: 0 0 5px">是否基于帖子购买</label>
                        <select required name="isBuyBasedInfo" ng-model="vm.p.isBuyBasedInfo" class="form-control">
                            <option value="是">是</option>
                            <option value="否">否</option>
                        </select>
                        <span ng-show="form.isBuyBasedInfo.$error.required" class="help-block">请选择是否基于帖子购买</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.productDescription.$error.required,'has-success':!form.productDescription.$error.required}">
                        <label style="padding: 0 0 5px">产品描述</label>
                        <input type="text" class="form-control" name="productDescription"
                            ng-model="vm.p.productDescription" required />
                        <span ng-show="form.productDescription.$error.required" class="help-block">请填写产品描述</span>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.onlineDate.$error.required,'has-success':!form.onlineDate.$error.required}">


                        <label for="onlineDate" style="display: table-cell;">产品上线日期</label>
                        <div class='input-group date' id='onlineDate'>
                            <input type='text' class="form-control" ng-model="vm.p.onlineDate" name="onlineDate" />
                            <span class="input-group-addon" style="width: 4rem">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div>
                        <span ng-show="form.onlineDate.$error.required" class="help-block">请填写产品上线日期</span>
                        <!-- <label style="padding: 0 0 5px">产品上线日期</label>
                        <input type="text" class="form-control" name="onlineDate" ng-model="vm.p.onlineDate" required /> -->

                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.offlineDate.$error.required,'has-success':!form.offlineDate.$error.required}">
                        <!-- <label style="padding: 0 0 5px">产品下线日期</label>
                        <input type="text" class="form-control" name="offlineDate" ng-model="vm.p.offlineDate"
                            required /> -->

                        <label for="offlineDate" style="display: table-cell;">产品下线日期</label>
                        <div class='input-group date' id='offlineDate'>
                            <input type='text' class="form-control" ng-model="vm.p.offlineDate" name="offlineDate"/>
                            <span class="input-group-addon" style="width: 4rem">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div>
                        <span ng-show="form.offlineDate.$error.required" class="help-block">请填写产品下线日期</span>
                    </div>
                    <div class="form-group">
                        <input class="btn btn-primary" ng-class="{'disabled':!form.$valid}" type="button" value="确定"
                            ng-click="form.$valid&&productInfoSave()" />
                        <a href="#/star/config/product_info_list/" class="btn btn-default">返回</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--/.container-->
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput.js"></script>
<script type="text/javascript" charset="UTF-8" src="../lib/bootstrap/js/bootstrap-tagsinput-angular.js"></script>